<?php

class Page extends AppModel {
	
	var $belongsTo = array(
		'Category' => array(
		  'className'=>'Category',
		  'foreignKey'=>'id_cat'
		),
		'SubCategory' => array(
		  'className'=>'Category',
		  'foreignKey'=>'id_subcat'
		)
	);
	  
	public $validate = 
		array(
			'title' => array(
			'rule' => 'notEmpty'
			)
		);

}

?>